from pydantic import BaseModel


class WeChatLoginRequest(BaseModel):
    """
    微信登录请求模型
    """
    code: str

class WeChatLoginResponse(BaseModel):
    """
    微信登录响应模型
    """
    success: bool
    openid: str
    session_key: str
    unionid: str = None
    err_msg: str = None


class User(BaseModel):
    open_id: str
